package com.dayaokeji.rhythmschoolstudent.client.home.course.adapter;

import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.client.common.base.common.ApiConstantKt;
import com.dayaokeji.rhythmschoolstudent.client.home.course.bean.FileBean;
import com.dayaokeji.rhythmschoolstudent.glide.GlideUrlModel;
import com.dayaokeji.rhythmschoolstudent.glide.GlideUtils;

/**
 * Created by Gorden on 2018/3/23.
 */

public class HomeWorkAdapter extends BaseQuickAdapter<FileBean,BaseViewHolder> {

    public HomeWorkAdapter() {
        super(R.layout.item_homw_work_file, null);
    }

    @Override
    protected void convert(BaseViewHolder helper, FileBean item) {
        TextView textView = helper.getView(R.id.tv_room_name);
        textView.setText(item.getName());
        helper.addOnClickListener(R.id.iv_delete);
        helper.addOnClickListener(R.id.tv_room_name);
    }

}
